.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

/* 预约状态区域 */
.statusSection {
  background: white;
  margin: 16px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.statusInfo {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.statusIcon {
  font-size: 20px;
  margin-right: 8px;
}

.statusText {
  font-size: 16px;
  font-weight: 600;
}

.statusText.pending {
  color: #1890ff;
}

.statusText.completed {
  color: #52c41a;
}

.statusDescription {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 条形码区域 */
.barcodeSection {
  background: white;
  margin: 16px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.barcodeContainer {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.barcode {
  width: 200px;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    #000 0px,
    #000 2px,
    transparent 2px,
    transparent 4px
  );
  border: 1px solid #ddd;
  border-radius: 4px;
  position: relative;
}

.barcode::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    #000 0px,
    #000 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.8;
}

.barcode::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 1px,
    #000 1px,
    #000 2px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.6;
}

.barcodeNumber {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 16px 0 8px 0;
  letter-spacing: 1px;
}

.barcodeDescription {
  font-size: 14px;
  color: #666;
}

/* 患者信息和预约信息区域 */
.patientSection,
.appointmentSection {
  background: white;
  margin: 16px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}

.infoGrid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.infoItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  min-height: 24px;
}

.infoItem:last-child {
  border-bottom: none;
}

.label {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  min-width: 80px;
  flex-shrink: 0;
}

.value {
  font-size: 14px;
  color: #333;
  font-weight: 400;
  text-align: right;
  flex: 1;
  margin-left: 16px;
  word-break: break-all;
}

/* 测试按钮 */
.testButtons {
  display: flex;
  gap: 8px;
  margin: 16px;
  padding: 0 4px;
  justify-content: center;
}

.testButton {
  padding: 8px 16px;
  background: #f0f0f0;
  color: #666;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testButton:hover {
  background: #e6f7ff;
  color: #1890ff;
  border-color: #91d5ff;
}

/* 操作按钮 */
.actionButtons {
  display: flex;
  gap: 12px;
  margin: 16px;
  padding: 0 4px;
}

.modifyButton {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.modifyButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.modifyButton:active {
  transform: translateY(0);
}

.cancelButton {
  flex: 1;
  height: 48px;
  background: white;
  color: #ff4d4f;
  border: 2px solid #ff4d4f;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancelButton:hover {
  background: #ff4d4f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.cancelButton:active {
  transform: translateY(0);
}

.completeButton {
  flex: 1;
  height: 48px;
  background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.completeButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(82, 196, 26, 0.4);
}

.completeButton:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .statusSection,
  .barcodeSection,
  .patientSection,
  .appointmentSection {
    margin: 12px;
    padding: 16px;
  }
  
  .barcode {
    width: 160px;
    height: 50px;
  }
  
  .barcodeNumber {
    font-size: 16px;
  }
  
  .actionButtons {
    margin: 12px;
    gap: 8px;
  }
  
  .modifyButton,
  .cancelButton {
    height: 44px;
    font-size: 15px;
  }
  
  .infoItem {
    padding: 12px 0;
    min-height: 20px;
  }
  
  .label {
    font-size: 13px;
    min-width: 70px;
  }
  
  .value {
    font-size: 13px;
    margin-left: 12px;
  }
  
  .sectionTitle {
    font-size: 15px;
    margin-bottom: 12px;
  }
}
